There is no return statement in this branch, but you do return something in other branches. Did you maybe miss it? If you do not want to return anything, consider adding return undefined; explicitly.
Loading history...
17
})
18
})
19
}
20
21
function writeFile (fileContent) {
22
let filePath = 'page'
23
return new Promise (function (resolve, reject) {
24
fs.writeFile(filePath, fileContent, function (err) {
There is no return statement in this branch, but you do return something in other branches. Did you maybe miss it? If you do not want to return anything, consider adding return undefined; explicitly.